import React from 'react';
import { AntdLayout } from './antd-layout';

import { createBrowserRouter, RouterProvider } from 'react-router-dom';

const router = createBrowserRouter([
  {
    path: '/',
    element: <AntdLayout />,
    children: [
      {
        path: '1',
        element: <div>1111</div>
      },
      {
        path: '2',
        element: <div>2222</div>
      },
      {
        path: '3',
        element: <div>333</div>
      }
    ]
  }
]);

export function App() {
  return (
    <React.StrictMode>
      <RouterProvider router={router} />
    </React.StrictMode>
  );
}
